<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
 
  <head>
    <title>自动巡检</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" media="all" />
    <script>
		function autoTest()
		{
			window.open("/autoTest","_blank");

			setTimeout(function(){location.reload();},3000);
		}
	</script>
  </head>
 
  <body>
 
    <p th:text="${msg}">Welcome to our grocery store!</p>
 	<hr>
 	<div>
 		巡检状态
 		<table border="0" width='23%'>
 			<tr>
 			<!-- 
 				<th>日期:</th><th th:text="${curDate}">2020-03-13</th>
 				<th>路径</td><td th:text="${path}"></th>
 				<th><a target='_blank' th:href="'/autoTest'" disabled='ture' >重新巡检</a></th>
 			 -->
 				<th>巡检状态:</td><td th:text="${doState}">已完成</th>
 				<th>操作：</td>
 				<th><button th:disabled="${disableState}" onClick='autoTest()'>重新巡检</th>
 			</tr>
 		</table>
 		<hr>
 		巡检结果下载列表
 		<table border="0" width='60%'>
 			<tr>
 				<th>文件名</th><th>大小</th><th>创建时间</th><th>下载链接</th>
 			</tr>
 			<tr th:each="u : ${fileList}">
				<td th:text="${u.fileName}"></td>
				<td th:text="${u.fileSize}"></td>
				<td th:text="${u.createTime}"></td>
				<td><a th:href="'/export/'+${u.fileName}" >下载</a></td>
			</tr>
 		</table>
 	</div>
	
  </body>
 
</html>